package com.rwy.dto.device;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class HandleFaultDeviceItemDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String salesNetworkName;
	
	private Integer salesNetworkID;
	
	private String detailAddress;
	
	private double latitude;
	
	private double longitude;
	
	private Date createTime;
	
	private Integer handStatus;
	
	private Integer terminalID;
	
	private String terminalCode;
	
	private String printerModel;
	
	private Integer printerStatus;
	
	private String printerStatusDesc;
	
	private String maintainRecord;
	
	private Integer handID;
	
	private Integer terminalStatus;
	
	private Integer updateUser;
	
	//增加入参
	private Integer employeeId;
	private Integer page;
	private Integer pageSize = 20;
	
	public HandleFaultDeviceItemDTO buildPage(Integer page) {
		if(page == null || page < 1 || page > 100) page = 1;
		this.page = page;
		return this;
	}
	public HandleFaultDeviceItemDTO buildPageSize(Integer pageSize) {
		if(pageSize == null || pageSize < 1 || pageSize > 50) pageSize = 20;
		this.pageSize = pageSize;
		return this;
	}
	
	
}
